import { createStore } from 'vuex';
import nepsModule from './modules/neps';
import nepgModule from './modules/nepg';
import nepmModule from './modules/nepm';

const store = createStore({
  modules: {
    neps: nepsModule,
    nepg: nepgModule,
    nepm: nepmModule
  },
  state: {
    meunCollapse: false,
    username: '',
  },
  mutations: {
    handleMeunCollapse(state) {
      state.meunCollapse = !state.meunCollapse
    },
    getUsername(state, data) {
      state.username = data
    }
  },
  actions: {

  },
  getters: {

  }
});

export default store;